- if @task.errors.empty?
  $('##{dom_id(@task)}').slideUp(250);

  - if @empty_bucket
    $('#list_#{@empty_bucket}').fadeOut({ duration:500 });

  - if called_from_index_page?
    = refresh_sidebar(:index)
- else # Errors
  $('#task_name').focus();
  $('#task_submit').enable();
